import tensorflow as tf
import os
import matplotlib.pyplot as plt

if __name__ == '__main__':
    os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
    # 准备 x 输入向量
    x = tf.linspace(-10, 10, 100)

    y = tf.nn.elu(x)
    print(y)

    # tf.nn.gelu(x)
    # tf.nn.prelu(x)
    # https://blog.csdn.net/zaf0516/article/details/89458856
